package com.whpost.service.zhdt.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.whpost.service.zhdt.entity.ZhdtWgxxKhjl;
import com.whpost.service.zhdt.entity.ZhdtWgxxKhxx;
import org.apache.ibatis.annotations.*;

public interface ZhdtWgxxKhjlMapper extends BaseMapper<ZhdtWgxxKhjl> {
    @Select("select * from zhdt_wgxx_khjl where ${ew.sqlSegment}")
    @Results(id="wgxxKhjlMap",value = {
            @Result(column="wgxx_id",property="zWgxx",
                    one=@One(
                            select="com.whpost.service.zhdt.dao.ZhdtWgxxMapper.selectById")
            ),
            @Result(column="wgxx_id",property="wgxxId")
    })
    IPage<ZhdtWgxxKhjl> getZhtdWgxxKhjlPage(Page<ZhdtWgxxKhjl> page, @Param("ew") QueryWrapper wrapper);
}
